package com.getword.web.controller;


import com.getword.web.model.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/wx/login")
public class ApiWXLoginController {
    @PostMapping
    public Result wxLogin( String code, HttpServletRequest request){
        System.out.println(code);
        // https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code
        return null;
    }
}
